package cn.itcast.service;

import cn.itast.domain.Permission;
import cn.itast.domain.Role;

import java.util.List;

public interface IRoleService {

    public List<Role> findAll();

    public Role findById(String roleId);

    public void save(Role role);

    List<Permission> findOtherPermission(String permissionId);

    void addPermissionToRole(String roleId, String[] permissionId);

}
